package com.lagou.edu.fegin;

import com.lagou.edu.fegin.fallback.UserServiceClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 赵虎
 * @date 2021/2/23 12:58 上午
 */
@FeignClient(name = "lagou-scn-user", fallback = UserServiceClientFallback.class)
public interface IUserServiceClient {

    @GetMapping("/user/info/{token}")
    public String getEmailByToken(@PathVariable String token);
}

